<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%pre_common_student}}".
 *
 * @property integer $sid
 * @property string $Student_name
 * @property string $Type
 * @property string $Depart_name
 * @property string $Major
 * @property string $School_name
 * @property string $phoneNumber
 * @property string $Team_name
 * @property integer $status
 */
class PreCommonStudent extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%pre_common_student}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['sid', 'Student_name', 'Depart_name', 'Major', 'School_name'], 'required'],
            [['sid', 'status'], 'integer'],
            [['Student_name', 'Type', 'Depart_name', 'Major', 'School_name', 'phoneNumber', 'Team_name'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'sid' => '学号',
            'Student_name' => '姓名',
            'Type' => '学生类别',
            'Depart_name' => '学院',
            'Major' => '专业',
            'School_name' => '学校',
            'phoneNumber' => '电话号码',
            'Team_name' => '团队名称',
            'status' => '状态',
        ];
    }
}
